<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<body>
	<script>
	//批量生成实例对象
	function Person(name,age){
        this.name=name;
        this.age=age;
		this.say=function() {
			console.log("方法")
		}
	}

	// var p2={name:'zs',age:18,say:function(){}}
	// var p2={name:'zs1',age:18,say:function(){}}
	// var p2={name:'zs1',age:18,say:function(){}}
	// var p2={name:'zs1',age:18,say:function(){}}
	// var p2={name:'zs1',age:18,say:function(){}}
	// var p2={name:'zs',age:18,say:function(){}}
    var p1=new Person("赵云",18)
	p1.say()


	  var p2=new Person("赵云2",18)
	p2.say()



console.log(	p1.say===p2.say);



	
	
	</script>
</body>
</html>